package com.caigou.controller.front;

import com.caigou.bean.cms.param.FontMobilePram;
import com.caigou.service.FontMobileService;
import com.caigou.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/font/mobile")
public class FontMobileController {

    @Resource
    private FontMobileService fontMobileService;

    @ApiOperation("获取移动端频道列表--tab页")
    @RequestMapping("/loadChannelMobileList")
    public Result loadChannelMobileList(@RequestBody FontMobilePram pram){
        return fontMobileService.loadChannelMobileList(pram);
    }

    @ApiOperation("获取移动端Banner列表页--根据tab页ID")
    @RequestMapping("/loadChannelBannerDataMobileList")
    public Result loadChannelBannerDataMobileList(@RequestBody FontMobilePram pram){
        return fontMobileService.loadChannelBannerDataMobileList(pram);
    }

    @ApiOperation("获取移动端内容列表页--根据tab页ID")
    @RequestMapping("/loadChannelDataMobileList")
    public Result loadChannelDataMobileList(@RequestBody FontMobilePram pram){
        return fontMobileService.loadChannelDataMobileList(pram);
    }

    @ApiOperation("获取移动端关键词列表页--根据关键词ID")
    @RequestMapping("/loadKeywordMobileList")
    public Result loadKeywordMobileList(@RequestBody FontMobilePram pram){
        return fontMobileService.loadKeywordMobileList(pram);
    }

    @ApiOperation("获取移动端菜单列表")
    @RequestMapping("/loadChannelMenuList")
    public Result loadChannelMenuMobileList(@RequestBody FontMobilePram pram){
        return fontMobileService.loadChannelMenuMobileList(pram);
    }

    @ApiOperation("移动端搜索接口")
    @RequestMapping("/loadMobileSearchList")
    public Result loadMobileSearchList(@RequestBody FontMobilePram pram){
        return fontMobileService.loadMobileSearchList(pram);
    }

    @ApiOperation("获取移动端广告位数据")
    @RequestMapping("/loadMobileAdData")
    public Result loadMobileAdData(@RequestBody FontMobilePram pram){
        return fontMobileService.loadMobileAdData(pram);
    }
}
